<?php
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
namespace api\v1\controller;

use think\facade\Db;
use think\Validate;
use cmf\controller\RestBaseController;
use api\v1\model\CmfRoleModel;

class RoleController extends RestBaseController
{
    /**
     * 显示资源列表
     */
    public function index()
    {
        $param = $this->request->param();

        $pageNumber = $this->request->param('pageNumber', 1);
        $pageSize = $this->request->param('pageSize', 20);

        $crm = new CmfRoleModel();

        $res = $crm->getAll("","*",$pageNumber,$pageSize);
        $this->success('ok',$res);
    }

}
